@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="menu" style="font-size: 20px;color: #5F8DC9">
            简历是求职的利器，好的简历才能更快找到好工作！
        </div>
        <div class="warp member" style="border: 1px #DDDDDD solid;margin-bottom: 50px">
            <form class="layui-form" method="POST" action="" lay-filter="example" id="undue">
                <div class="job-item" id="job1" style="background: #fff;padding: 15px;">
                    <div style="font-size: 18px;height:35px;border-bottom: 1px solid #f5f5f5;margin-bottom: 20px">基本信息
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><span class="required">*</span>姓名：</label>

                                <div class="layui-input-inline">
                                    <input type="text" name="nickname" lay-verify="required" placeholder="请输入姓名"
                                           class="layui-input" value="">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><span class="required">*</span>性别：</label>

                                <div class="layui-input-block">
                                    <input type="radio" name="sex" value="男" title="男" checked="">
                                    <input type="radio" name="sex" value="女" title="女">
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="required">*</span>年龄：</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="age" class="layui-input" placeholder="年龄"
                                               lay-verify="required|number">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">邮箱：</label>

                                    <div class="layui-input-inline">

                                        <input type="text" name="email" autocomplete="off" placeholder=""
                                               class="layui-input" value="" lay-verify="">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">手机：</label>
                                    <div class="layui-input-inline">
                                        <input type="text" disabled="disabled" class="layui-input"
                                               value="{{$user->mobile}}"
                                               readonly
                                               style="background: #f0f0f0">
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="required">*</span>学历：</label>

                                    <div class="layui-input-inline">
                                        <select name="education" lay-verify="required">
                                            <option value="请选择">请选择</option>
                                            <option value="初中以下">初中以下</option>
                                            <option value="高中">高中</option>
                                            <option value="大专">大专</option>
                                            <option value="大学">大学</option>
                                            <option value="研究生及以上">研究生及以上</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="required">*</span>经验：</label>

                                    <div class="layui-input-inline">
                                        <select name="operation">
                                            <option value="无经验">无经验</option>
                                            <option value="1年以下">1年以下</option>
                                            <option value="1-3年">1-3年</option>
                                            <option value="3-5年">3-5年</option>
                                            <option value="5-10年">5-10年</option>
                                            <option value="10年以上">10年以上</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="job-item" id="job2" style="background: #fff;padding: 15px;">
                    <div style="font-size: 18px;height:35px;border-bottom: 1px solid #f5f5f5;margin-bottom: 20px">求职意向
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">目前状态：</label>

                                <div class="layui-input-inline">
                                    <select name="estate">
                                        <option value="1">请选择</option>
                                        <option value="2" selected="">已离职</option>
                                        <option value="3">在职中，需离职</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">工作性质：</label>

                                <div class="layui-input-block">
                                    <input type="radio" name="type" value="全职" title="全职" checked="">
                                    <input type="radio" name="type" value="兼职" title="兼职">
                                    <input type="radio" name="type" value="实习" title="实习">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">期望行业：</label>

                                <div class="layui-input-inline">
                                    <select name="industry">
                                        <option value="不限">不限</option>
                                        <option value="1">消防安全</option>
                                        <option value="2">安监管理</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">期望职业：</label>

                                <div class="layui-input-inline">
                                    <select name="vocation">
                                        <option value="1">消防工程师</option>
                                        <option value="2">消防设计师</option>
                                        <option value="3">消防维保员</option>
                                        <option value="4">消防检测员</option>
                                        <option value="5">消防安全员</option>
                                        <option value="6">消防负责人</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">期望薪资：</label>

                                <div class="layui-input-inline">
                                    <input type="hidden" name="_token" value="{{csrf_token()}}">
                                    <input type="text" name="salary" autocomplete="off" placeholder=""
                                           class="layui-input">
                                </div>
                            </div>

                        </div>
                    </div>

                </div>
                <div class="job-item" style="overflow:hidden;background: #fff;padding: 15px;">
                    <div class="layui-form-item" style="text-align: center;margin-top: 30px">
                        <button type="submit" class="layui-btn layui-btn-sm submit"
                                style="background: #DD4517;border-radius: 20px;padding: 0 20px;" lay-submit
                                lay-filter="demo1">
                            保存
                        </button>
                        <button class="layui-btn layui-btn-sm"
                                style="margin-left:50px;border:1px solid #666;background:#fff;color:#333;border-radius: 20px;padding: 0 20px;">
                            取消
                        </button>
                    </div>

                </div>
            </form>
        </div>
    </div>
    <script src="/static/plugins/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script>
        layui.use(['jquery', 'form', 'layedit', 'laydate'], function () {
            let form = layui.form();
            let layer = layui.layer;
            let $ = layui.jquery;
            //监听提交
            form.on('submit(demo1)', function (data) {
                $('#undue').submit();
                return false;
            });
        });
    </script>
@endsection
